package com.bba.manager.api;

import com.bba.manager.common.util.ResponseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "SkuFeign",value = "car-sku-service")
public interface SkuFeign {

    @PostMapping("/car/decount/{id}/{num}")
    public ResponseVO decount( @PathVariable("id") Long id,
                               @PathVariable("num") Integer num
    );
    @GetMapping("/carVendor/getByCarId")
    public ResponseVO getByCarId(@RequestParam Long carId);
    @PostMapping("/carVendor/decount/{id}/{num}")
    public ResponseVO decountCV(
            @PathVariable("id") Long id,
            @PathVariable("num") Integer num
    );
    @PostMapping("/partsVendor/decount/{id}/{num}")
    public ResponseVO decountPV(
            @PathVariable("id") Long id,
            @PathVariable("num") Integer num
    );

}
